package class05;

import edu.hunan.cxb18.spring.anntation.dao.UserDao;
import edu.hunan.cxb18.spring.anntation.pojo.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author chenheng
 * @create 2020-03-22 10:15
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:class03/spring-anntation-01.xml"})
public class AopTest02 {
    @Autowired
    public UserDao userDao;
    public User user;
    @Test
    public void before(){
        userDao.insertUser(user);
    }
}
